Crate precis_tools
source ·Expand description
Tools and parsers to generate PRECIS tables from the Unicode Character Database (UCD
)
This crate is generally used to generate code to be used by other crates such as
precis-core or precis-profiles.
Consider adding this in your build-dependencies section instead.
Structs§
- Generates the
ASCII7
table required by the PRECIS framework. - Generates the
BackwardCompatible
table required by the PRECIS framework. - Generates a table of tuples (
Codepoints
,BidiClass
) representing the values of the Unicode character propertyBidi_Class
. Possible values are listed inUAX44
, Table 13. - Generate the
Codepoints
struct
used by all tables created by all generators. - A line oriented parser for a particular
UCD
file. - A single row in the
DerivedJoiningType
file. - Generates the derived property
enum
with the values described in the PRECIS Code Point Properties section. - Represents any kind of error that can occur while parsing files
- Generates the Exceptions table required by the PRECIS framework.
- Generator that aggregates elements that are able to generate tables from the
UnicodeData
file - A single row in the
HangulSyllableType
file. - A single row in the
precis-tables.csv
file. - This is the main code generator element. It aggregates other
CodeGen
elements. The resulting file will contain the code generated by every element added to the code generator. - Generator that aggregates other
UcdCodeGen
elements. - Generator that crates tables of Unicode code points as a result of parsing properties in the
UCD
files. - Generator that creates a table of unassigned Unicode code points
- Extension of the
UnicodeData
struct
provided by theucd_parse
crate. Unlike the original one, thisstruct
does not represent a single line in theUnicodeData
file, but it could be the result of a whole parsing of several files to contain range of Unicode code points. Note that this file, unlike others in the Unicode data files, represents ranges split in different lines in order not to break parsers compatibility. - Aggregator of elements that implement the
UcdLineParser
trait. - Generates the UNICODE version variable used to generate the library.
- Generator that creates a table of Unicode code points with the
Virama
canonical combining class. - Generator that creates a table of Unicode code points and their decomposition mappings.
Enums§
- Second column in the
precis-tables.csv
file. Values could be made up of a single derived property value, or two combined with theor
word - Represents the derived property value assigned to an Unicode code point. This value is parsed from the
CSV
maintained in theIANA
registry.
Traits§
- Trait implemented by all elements which are able to generate code.
- Trait implemented by all elements that are able to parse
UCD
files. - Generic trait used by parsers to generate code.